Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
void BulkPropagatorJob::finalize(const QJsonObject &fullReply)
{
- qCDebug(lcBulkPropagatorJob) << "Received a full reply" << fullReply;
+ qCDebug(lcBulkPropagatorJob) << "Received a full reply" << QJsonDocument::fromVariant(fullReply).toJson();
for(auto singleFileIt = std::begin(_filesToUpload); singleFileIt != std::end(_filesToUpload); ) {
const auto &singleFile = *singleFileIt;
_tasksToDo.remove(0);
PropagatorJob *job = propagator()->createJob(nextTask);
if (!job) {
- qCWarning(lcDirectory) << "Useless task found for file" << nextTask->destination() << "instruction" << nextTask->_instruction;
+ if (!propagator()->isDelayedUploadItem(nextTask)) {
+ qCWarning(lcDirectory) << "Useless task found for file" << nextTask->destination() << "instruction" << nextTask->_instruction;
+ }
continue;
}
appendJob(job);
if (!oneDevice._device->errorString().isEmpty()) {
qCWarning(lcPutMultiFileJob) << "oneDevice has error:" << oneDevice._device->errorString();
}
- }
- if (oneDevice._device->isOpen()) {
oneDevice._device->close();
- } else {
- qCWarning(lcPutMultiFileJob) << "Did not close device" << oneDevice._device.get()
- << "as it was not open";
}
}